import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
type int = number;
//class SLogin

export class SLogin {
  public __write(arg1: SerializeStream): void {
    arg1.writeString(this.username);
    arg1.writeInt(this.userId);
    arg1.writeString(this.server);
    arg1.writeDate(this.time);
    arg1.writeString(this.flag);
    arg1.writeInt(this.country);
    arg1.writeInt(this.isAdult);
    arg1.writeInt(this.setIsMain);
    arg1.writeString(this.platformCode);
    arg1.writeString(this.password);
    arg1.writeString(this.loginIp);
    arg1.writeInt(this.totalOnlineTime);
    arg1.writeString(this.platformUserName);
    arg1.writeInt(this.issm);
    arg1.writeInt(this.playerId);
    arg1.writeString(this.gateIp);
    arg1.writeString(this.codeVersion);
  }

  public __read(arg1: SerializeStream): void {
    this.username = arg1.readString();
    this.userId = arg1.readInt();
    this.server = arg1.readString();
    this.time = arg1.readDate();
    this.flag = arg1.readString();
    this.country = arg1.readInt();
    this.isAdult = arg1.readInt();
    this.setIsMain = arg1.readInt();
    this.platformCode = arg1.readString();
    this.password = arg1.readString();
    this.loginIp = arg1.readString();
    this.totalOnlineTime = arg1.readInt();
    this.platformUserName = arg1.readString();
    this.issm = arg1.readInt();
    this.playerId = arg1.readInt();
    this.gateIp = arg1.readString();
    this.codeVersion = arg1.readString();
    return;
  }

  public /* var */ username!: string;

  public /* var */ userId!: int;

  public /* var */ server!: string;

  public /* var */ time!: Date;

  public /* var */ flag!: string;

  public /* var */ country!: int;

  public /* var */ isAdult!: int;

  public /* var */ setIsMain!: int;

  public /* var */ platformCode!: string;

  public /* var */ password!: string;

  public /* var */ loginIp!: string;

  public /* var */ totalOnlineTime!: int;

  public /* var */ platformUserName!: string;

  public /* var */ issm!: int;

  public /* var */ playerId!: int;

  public /* var */ gateIp!: string;

  public /* var */ codeVersion!: string;
}
